import request from "@/utils/request";

// 查询角色管理列表
/*
{
    grant_type:'password',
    scope:'all',
    password:'123',
    username:'{"phone":"123","authType":"password"}'
}
 */
export function oauthLocalLoginPassword(query) {
  return request({
    // 主动设置header对象
    headers: {
      "Authorization": "Basic Y2xpZW50OnNlY3JldA==",
      "Content-Type": "application/x-www-form-urlencoded",
    },
    url: "/auth/oauth/token",
    method: "post",
    params: query,
  });
}
